exports.add=[
{
	_type:"controller",
	_config_details: {	
	},
	_config: {
		path:"adminpanel/",
		name:"AdminUser",
		admin:1,
		role_code:"users"
	},
	
	_admin_nav: [
		{section:"settings",name:"Users &amp; roles",mode:"index"}
	],

	/**
	 * Controller: AdminUser.index 
	 *
	 * Returns:
	 *		HTML
	 */
	index: function(config) {
		return this.Cview();
	},

	encrypt: function() {
		return JSON.stringify({
			value:this.site.sql.execute_and_fetch_one_single("select crypt(:password,gen_salt('bf')) as pass",{password:this.fields.value}).pass
		});
	}
}];

